<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/commons/taglibs.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<%@ include file="/commons/meta.jsp" %>
	<title>会员管理首页</title>
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="${ctx }/styles/css_uax.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="container">
	<%@include file="/commons/top.jsp" %>
  <div id="sub-header">
	<s:form action="/PublishInfo/update.do" method="post" theme="simple">
		<s:hidden id="publishInfoId" name="publishInfoId" ></s:hidden>
		
		<table width="100%" cellpadding="3" cellspacing="6">
			<tr>
				<td width="200" valign="top">
					<%@ include file="/front/Members/memberLeft.jsp" %>
				</td>
				<td>
					<table class="formTable" cellpadding="5" cellspacing="10">
						<tr>
							<td colspan="2">
							修改工人信息			 
							 <%@ include file="/commons/messages.jsp" %>
							</td>
							
						</tr>
						<tr>
							<td class="tdLabel"><font color="red">*</font>&nbsp;&nbsp;区域</td>
							<td>
								<s:select name="cityId"   theme="simple" 
						   			id="cityId" list="cityList" listKey="cityId" headerKey="" headerValue="----请选择----"
						     		listValue="name">
			   					</s:select>
							</td>
						</tr>
						
						<tr>
							<td class="tdLabel"><font color="red">*</font>&nbsp;&nbsp;类别</td>
							<td>
								<s:select name="categoryId"   theme="simple" 
						   			id="categoryId" list="categoryList" listKey="categoryId" headerKey="" headerValue="----请选择----"
						     		listValue="categoryName">
			   					</s:select>
							</td>
						</tr>
						
						<tr>
							<td class="tdLabel"><font color="red">*</font>&nbsp;&nbsp;姓名</td>
							<td><s:textfield name="name" id="name" value="%{model.name}" cssClass="required" required="true" />
							</td>
						</tr>
						
						<tr>
							<td class="tdLabel">地址</td>
							<td><s:textfield name="address" id="address" value="%{model.address}" cssClass="input25" cssStyle="width:240px" required="false" /></td>
						</tr>
						
						<tr>
							<td class="tdLabel"><font color="red" style="font-weight:bold;font-size:14px;">*</font>&nbsp;&nbsp;电话 </td>
							<td><s:textfield id="phone" name="phone" cssClass="required" required="true" /></td>
						</tr>
						
						<tr>
							<td class="tdLabel"><font color="red" style="font-weight:bold;font-size:14px;">*</font>&nbsp;&nbsp;个人说明 </td>
							<td><s:textarea id="profile" name="profile" cssClass="required" cols="80" rows="5" required="true" /></td>
						</tr>
							 
						
						<tr>
							<td>&nbsp;</td>
							<td align="left">
								<input id="submitButton" name="submitButton" type="submit" style="width:120px" value="确定" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</s:form>
  </div>
  <jsp:include page="/commons/bottom.html" flush="true"></jsp:include>
</div>

<script>
	
	new Validation(document.forms[0],{onSubmit:true,onFormValidate : function(result,form) {
		var finalResult = result;
		
		//在这里添加自定义验证
		
		return disableSubmit(finalResult,'submitButton');
	}});
</script>

</body>
</html>